<?php
class Zendvn_View_Helper_AdminTableTitle extends Zend_View_Helper_Abstract{
    
    public function adminTableTitle($name = null,$value = null,$attribs = null,$options = null ){
    	$view= $this->view;
    	$attribs = str_replace('+', '"',str_replace('|', ' ', $options['attr']));
        $xhtml = '<th '.$attribs.'><a href="#"
                            onclick="Joomla.tableOrdering(\'a.title\',\'asc\',\'\');"
                            title="Click to sort by this column">'.ucfirst($view->translate($name)).'</a></th>';
        return $xhtml;
    }
}